<template>
  <div id="app">
    <!-- <div id="nav"> -->
      <!-- <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link> | 
      <router-link to="/map">map</router-link> -->
    <!-- </div> -->
    <!-- <router-view/> -->

  <input v-model="message">
  
  <div class="box">
    <div class="boxs">
    </div></div> 
  </div>
</template>
<script>
export default ({
  name:'App',
  data(){
    return{

    }
  },
// ...
computed: {
    message: {
        get () {
            return this.$store.state.message
        },
        set (value) {
          this.$store.commit('updateMessage', value)
        }
    }
},

  created(){
    console.log('created')
  },
  beforeCreate(){
    console.log('beforeCreate')
  },
  mounted(){
    console.log('mounted')
  },
  beforeMount(){
    console.log('mouted')
  },
})
</script>


<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
.box{
  border: 1px solid red;
float: left;
position: absolute;
width: 200px;
height: 100px;
left: 50%;
top: 50%;
margin: -50px 0 0 -100px; 

}

.boxs{
width: 0;
height: 0;
border-top: 40px solid transparent;
border-left: 40px solid transparent;
border-right: 40px solid transparent;
border-bottom: 40px solid #ff0000;
}
</style>
